﻿using System;
using System.ComponentModel;
using PetaPoco;
using PmSoft;
using PmSoft.Caching;
using static Modules.Person.PersonConstants;
using static Modules.Project.ProjectConstants;

namespace Modules
{
    /// <summary>
    /// 工资单设置
    ///</summary>
    [TableName("wage_payroll_setting")]
    [Description("工资每月,每日限额设置")]
    [PrimaryKey("id", AutoIncrement = true)]
    [CacheSetting(true)]
    [Serializable]
    public class WagePayrollSetting:IEntity
    {
        /// <summary>
        /// 主键 
        ///</summary>
         [Column("id"  )]
         public int Id { get; set; }
        /// <summary>
        /// 行业分类 
        ///</summary>
         [Column("industry_type"  )]
         public 行业主管部门? IndustryType { get; set; }
        /// <summary>
        /// 工种 
        ///</summary>
         [Column("work_type"  )]
         public 工人工种? WorkType { get; set; }
        /// <summary>
        /// 按月发放，每人每月限额 
        ///</summary>
         [Column("monthly_limit"  )]
         public decimal? MonthlyLimit { get; set; }
        /// <summary>
        /// 按日发放，每人每日限额 
        ///</summary>
         [Column("daily_limit"  )]
         public decimal? DailyLimit { get; set; }

    #region IEntity 成员

        [Ignore]
        object IEntity.EntityId { get { return this.Id; } }

      #endregion

    }
}
